package com.julyup.core.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebFileurlConfiguration extends WebMvcConfigurerAdapter {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//
//        //addResourceHandler是指你想在url请求的路径
//        //addResourceLocations是文件存放的真实路径
//
//        registry.addResourceHandler("/plandata/**").addResourceLocations("file:./plandata/");
        super.addResourceHandlers(registry);
    }
}
